package components.list.item
{
	import capricornus.components.tilelist.TileList;
	
	import flash.display.Sprite;
	
	import mx.containers.Tile;
	
	public class ListItem extends Sprite
	{
		private var _list:TileList;
		
		private var _title:Title;
		private var _contentList:TileList
		
		public function ListItem()
		{
			super();
			init();
		}
		
		private function init():void
		{
			_list = new TileList(1);
			_list.setSize( 300, 100 );
			_list.autoHeight = true;
			addChild( _list );
			
			_title = new Title();
			_list.addItem( _title );
			
			_contentList = new TileList(1);
			_contentList.setSize( 300, 40 );
			_contentList.autoHeight = true;
			
			_list.addItem( _contentList );
		}
		
		public function parse( xml:XML ):void
		{
			
		}
		
		override public function get height():Number
		{
			return super.height;
		}
	}
}
